package com.liu.domain;


import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by liu on 17-9-12.
 */
@Entity
public class dm {
    @Id
    private Integer dm_id;     //系统管理员编号
    private String name;      //姓名
    private String sex;       //性别
    private String password;  //密码
    private int build_id;      //楼栋号
    private String phone;      //电话
    private String email;   //邮箱

    public Integer getDm_id() {
        return dm_id;
    }

    public void setDm_id(Integer dm_id) {
        this.dm_id = dm_id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getBuild_id() {
        return build_id;
    }

    public void setBuild_id(int build_id) {
        this.build_id = build_id;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "{" +
                "\"dm_id\":" + dm_id +
                ", \"name\":\"" + name + '\"' +
                ", \"sex\":\"" + sex + '\"' +
                ", \"password\":\"" + password + '\"' +
                ", \"build_id\":" + build_id +
                ", \"email\":" + email +
                ", \"phone\":\"" + phone + '\"' +
                '}';
    }
}
